import { createApp } from 'vue'
import App from './App.vue'
import router from './routes'
import { createPinia } from 'pinia'
import 'element-plus/theme-chalk/src/index.scss'
import '@/styles/tailwind.css'
import tooltip from '@/directives/tooltip'

export function loadPlugins(app: any) {
  app.use(createPinia()).use(router)
  tooltip(app)
}

const app = createApp(App)
loadPlugins(app)
app.mount('#app')
